package andriod.samples;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;

public class ActivityControls_x extends Activity {
	

	OnClickListener listener0 = null;
	OnClickListener listener1 = null;
	
	Button button0;
	Button button1;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);;
		setContentView(R.layout.activity_controls_x);
		
		
		listener0 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent0 = new Intent(ActivityControls_x.this, ActivityControls_1.class);
				startActivity(intent0);

			}
		};
		
		listener1 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent1 = new Intent(ActivityControls_x.this, ActivityControls_2.class);
				startActivity(intent1);

			}
		};

				
		button0 = (Button) findViewById(R.id.controls_1);
		button0.setOnClickListener(listener0);


		button1 = (Button) findViewById(R.id.controls_2);  
		button1.setOnClickListener(listener1); 
		
	}

}
